package com.xbai.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.xbai.springcloud.entity.CommonResult;

/**
 * @author xbai
 * @Date 2021/6/11
 */
public class CustomerBlockHandler {

    public static CommonResult handleException(BlockException exception){
        return new CommonResult(400, "按客户自定义， global handleException --- 1");
    }

    public static CommonResult handleException2(BlockException exception){
        return new CommonResult(400, "按客户自定义， global handleException --- 2");
    }
}
